package com.huo.thread.createthreaddemo;

public class ThreadDemo extends  Thread{

    @Override
    public void run() {
        System.out.println("线程：" + Thread.currentThread().getName());

    }

    public static void main(String[] args) {
        ThreadDemo t1 = new ThreadDemo();
        t1.start();

        ThreadDemo t2 = new ThreadDemo();
        t2.start();
    }
}
